package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ClearCategoryMapper;
import com.ruoyi.system.domain.ClearCategory;
import com.ruoyi.system.service.IClearCategoryService;
import com.ruoyi.common.core.text.Convert;

/**
 * 门店清运品类 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-07
 */
@Service
public class ClearCategoryServiceImpl implements IClearCategoryService 
{
	@Autowired
	private ClearCategoryMapper clearCategoryMapper;

	/**
     * 查询门店清运品类信息
     * 
     * @param id 门店清运品类ID
     * @return 门店清运品类信息
     */
    @Override
	public ClearCategory selectClearCategoryById(Long id)
	{
	    return clearCategoryMapper.selectClearCategoryById(id);
	}
	
	/**
     * 查询门店清运品类列表
     * 
     * @param clearCategory 门店清运品类信息
     * @return 门店清运品类集合
     */
	@Override
	public List<ClearCategory> selectClearCategoryList(ClearCategory clearCategory)
	{
	    return clearCategoryMapper.selectClearCategoryList(clearCategory);
	}
	
    /**
     * 新增门店清运品类
     * 
     * @param clearCategory 门店清运品类信息
     * @return 结果
     */
	@Override
	public int insertClearCategory(ClearCategory clearCategory)
	{
	    return clearCategoryMapper.insertClearCategory(clearCategory);
	}
	
	/**
     * 修改门店清运品类
     * 
     * @param clearCategory 门店清运品类信息
     * @return 结果
     */
	@Override
	public int updateClearCategory(ClearCategory clearCategory)
	{
	    return clearCategoryMapper.updateClearCategory(clearCategory);
	}

	/**
     * 删除门店清运品类对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteClearCategoryByIds(String ids)
	{
		return clearCategoryMapper.deleteClearCategoryByIds(Convert.toStrArray(ids));
	}
	
}
